//
//  LXJMainViewController.m
//  HMSport
//
//  Created by 李旭杰 on 2017/4/23.
//  Copyright © 2017年 LiXujie. All rights reserved.
//

#import "LXJMainViewController.h"
#import "LXJControlViewController.h"
#import "LXJSportTrack.h"

@interface LXJMainViewController ()

@end

@implementation LXJMainViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
}

// 开始跑步
- (IBAction)runAction:(UIButton *)sender {
    //创建运动轨迹模型
    LXJSportTrack *track = [[LXJSportTrack alloc] initWithSportType:sender.tag withSportState:HMSportStateContinue];
    
    // push 控制控制器
    LXJControlViewController *controlVC = [[LXJControlViewController  alloc] init];
    // 数据传递
    controlVC.track = track;
    [self.navigationController pushViewController:controlVC animated:YES];
}
@end
